* {
  margin: 0;
  padding: 0;
}

#app {
  position: absolute;
  left: 0;
  right: 0;
  top: 100px;
  margin: auto;
  display: flex;
  justify-content: center;
  height: 200px;
}

.table {
  display: flex;
  justify-content: center;

  li {
    list-style: none;
    text-align: center;
    max-width: 100px;
    display: flex;
    flex-direction: column;
    border: 1px solid rgb(118, 118, 118);
    border-collapse: separate;
    position: relative;

    &:first-child {
      border-bottom-left-radius: 2px;
    }

    &:last-child {
      border-bottom-right-radius: 2px;
    }

    // 删除按钮
    .remove-btn {
      width: calc(100% + 2px);
      height: 20px;
      position: absolute;
      left: -1px;
      top: -21px;
    }

    // 表头输入框
    .title {
      margin-bottom: 2px;
      padding: 6px 0;
      text-align: center;
      font-size: 16px;
      font-weight: bold;
      border: none;
      transition: .3s;
      border-bottom: 1px solid rgb(118, 118, 118);

      &::placeholder {
        font-size: 12px;
      }

      &:hover {
        background: #eee;
      }

      &:focus {
        outline: none;
        color: #f00;
        background: #eee;
      }
    }

    // 类型下拉选框
    .dropdown-menu {
      width: 100%;
      height: 28px;
      border: none;
      border-bottom: 1px solid;
      transition: .3s;

      &:hover {
        background: #eee;
      }

      &:focus {
        outline: none;
        background: #eee;
      }

      .menu-item {
        height: 28px;
      }
    }
  }
}

// 操作按钮
.option {
  display: flex;
  flex-direction: column;

  // 添加/导出按钮
  .btn {
    width: 100px;
    height: 20px;
    margin-left: 1px;
    margin-bottom: 1px;
  }

  // 导出数量
  .export-num {
    padding: 10px 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
  }
}
